import { FieldType } from "@/actions/listDeal";
import { Form, Input, InputNumber, TableProps, Tag } from "antd";

export const tableColumns  = [

    {
        title: '日期',
        dataIndex: 'time',
        key: 'time',
    },
    {
        title: '温度',
        dataIndex: 'num',
        key: 'num',
    },
    {
        title: '是否有圈',
        dataIndex: 'isCircle',
        key: 'isCircle',
        render: (text:string) => {
            if(text=='1'){
                return <Tag color="red">有</Tag>
            }
            return <Tag color="green">无</Tag>
        },
    },
    {
        title: '是否有例假',
        dataIndex: 'holiday',
        key: 'holiday',
        render: (text:string) => {
            if(text=='1'){
                return <Tag color="red">有</Tag>
            }
            return <Tag color="green">无</Tag>
        },
    },
]


  